﻿<?php 
require('../data/class_join_people.php');
$result = "false";
if(isset($_GET['number']))
{
	$number = $_GET['number'];
	
	$join = new isa_join_people("", $number, "", "", "");
	
	if(!$join->CheckRepeat() || $number == "")
	{
		$result = 'false';
	}
	else
	{
		$result = 'true:number';		
	}
}
if($result == 'false' && isset($_GET['email']))
{
	$email = $_GET['email'];
	$join = new isa_join_people("", "", "", "", $email);
	
	if(!$join->CheckRepeat() && filter_var($email, FILTER_VALIDATE_EMAIL))
	{
		$result = 'false';
	}
	else
	{
		$result = 'true:email';		
	}
}
/*
if($result == 'false' && isset($_GET['name']))
{
	$name = $_GET['name'];
	$join = new isa_join_people($name, "", "", "", "");
		
	if(!$join->CheckbyName())
	{
		$result = 'false';
	}
	else
	{
		$result = 'true:name';		
	}
}*/
echo $result;
?>